package com.sit.library.entity.dao;

import com.sit.library.entity.bean.InvalidJwt;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;

@Mapper
public interface InvalidJwtMapper {

    @Insert("insert into jwt_blacklist value(#{uuid}, #{expiresAt})")
    int insert(String uuid, Date expiresAt);

    @Select("select * from jwt_blacklist where uuid=#{uuid}")
    InvalidJwt selectByUuid(String uuid);
}
